from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `admin_dept` ADD `ancestors` VARCHAR(255) NOT NULL COMMENT '祖籍列表' DEFAULT '';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `admin_dept` DROP COLUMN `ancestors`;"""
